Modal logic

Modal logic is a type of formal logic that extends the standards of formal logic to include the elements of modality (for example, possibility and necessity). Modals qualify the truth of a judgment. For example, if it is true that "John is happy," we might qualify this statement by saying that "John is very happy," in which case the term "very" would be a modality. Traditionally, there are three "modes" or "moods" or "modalities" represented by modal logic, namely, possibility, probability, and necessity.

A formal modal logic represents modalities using modal operators. For example, "It might rain today" and "It is possible that rain will fall today" both contain the notion of possibility. In a modal logic this is represented as an operator, Possibly, attached to the sentence It will rain today.

The basic unary (1-place) modal operators are usually written \Box for Necessarily and \Diamond for Possibly. In a classical modal logic, each can be expressed by the other with negation:

\Diamond P \leftrightarrow \lnot \Box \lnot P;
\Box P \leftrightarrow \lnot \Diamond \lnot P.

Thus it is possible that it will rain today if and only if it is not necessary that it will not rain today.

Contents

Development of modal logic

Although Aristotle's logic is almost entirely concerned with the theory of the categorical syllogism, there are passages in his work, such as the famous sea-battle argument in De Interpretatione § 9, that are now seen as anticipations of modal logic and its connection with potentiality and time. The first formal system of temporal modal logic was founded by Avicenna, whose Avicennian logic[1] was further developed by Al-Ghazali,[2] Nasir al-Din al-Tusi and Najm al-Dīn al-Qazwīnī al-Kātibī, and became the dominant system of Islamic logic taught at Madrasahs through to the 20th century.[3][4] Avicennian logic also influenced several early Scholastics such as Albertus Magnus,[5] William of Ockham[6][7] and John Duns Scotus.[2] Modal logic as a self-aware subject also owes much to the writings of these Scholastics, who reasoned informally in a modal manner, mainly to analyze statements about essence and accident.

C. I. Lewis founded modern modal logic in his 1910 Harvard thesis and in a series of scholarly articles beginning in 1912. This work culminated in his 1932 book Symbolic Logic (with C. H. Langford), which introduced the five systems S1 through S5.

Ruth C. Barcan (later Ruth Barcan Marcus) developed the first axiomatic systems of quantified modal logic — first and second order extensions of Lewis's "S2", "S4", and "S5".

The contemporary era in modal semantics began in 1959, when Saul Kripke (then only a 19 year old Harvard University undergraduate) introduced the now-standard Kripke semantics for modal logics. These are commonly referred to as "possible worlds" semantics. Kripke and A. N. Prior had previously corresponded at some length.

A. N. Prior created modern temporal logic, closely related to modal logic, in 1957 by adding modal operators [F] and [P] meaning "henceforth" and "hitherto". Vaughan Pratt introduced dynamic logic in 1976. In 1977, Amir Pnueli proposed using temporal logic to formalise the behaviour of continually operating concurrent programs. Flavors of temporal logic include propositional dynamic logic (PDL), propositional linear temporal logic (PLTL), linear temporal logic (LTL), computational tree logic (CTL), Hennessy–Milner logic, and T.

The mathematical structure of modal logic, namely Boolean algebras augmented with unary operations (often called "modal algebras"), began to emerge with J. C. C. McKinsey's 1941 proof that S2 and S4 are decidable, and reached full flower in the work of Alfred Tarski and his student Bjarni Jonsson (Jonsson and Tarski 1951–52). This work revealed that S4 and S5 are models of interior algebra, a proper extension of Boolean algebra originally designed to capture the properties of the interior and closure operators of topology. Texts on modal logic typically do little more than mention its connections with the study of Boolean algebras and topology. For a thorough survey of the history of formal modal logic and of the associated mathematics, see Goldblatt (2006).

Formalizations

Semantics

The semantics for modal logic are usually given like so:[8] First we define a frame, which consists of a non-empty set, G, whose members are generally called possible worlds, and a binary relation, R, that holds (or not) between the possible worlds of G. This binary relation is called the accessibility relation. For example, w R v means that the world v is accessible from world w. That is to say, the state of affairs known as v is a live possibility for w. This gives a pair, <G, R>.

Next, the frame is extended to a model by specifying the truth-values of all propositions at each of the worlds in G. We do so by defining a relation ⊨ between possible worlds and propositional letters. If there is a world w such that w ⊨ P, then P is true at w. A model is thus an ordered triple, <G, R, ⊨>.

Then we define truth in a model:

According to these semantics, a truth is necessary with respect to a possible world w if it is true at every world that is accessible to w, and possible if it is true at some world that is accessible to w. Possibility thereby depends upon the accessibility relation R, which allows us to express the relative nature of possibility. For example, we might say that given our laws of physics it is not possible for humans to travel faster than the speed of light, but that given other circumstances it could have been possible to do so. Using the accessibility relation we can translate this scenario as follows: At all of the worlds accessible to our own world, it is not the case that humans can travel faster than the speed of light, but at one of these accessible worlds there is another world accessible from those worlds but not accessible from our own at which humans can travel faster than the speed of light.

The different systems of modal logic are distinguished by the properties of their corresponding accessibility relations. There are several systems that have been espoused (often called frame conditions). An accessibility relation is:

The logics that stem from these frame conditions are:

S5 is the strongest logic. A sentence is S5-valid if it is valid in all frames where R is an equivalence relation (reflexive, symmetric and transitive). We can prove that these frames produce the same set of valid sentences as do any frames where all worlds can see all other worlds (i.e., where R is a "total" relation). Since all worlds can see all other worlds in S5, the S5 system's semantics can be defined without the use of an accessibility relation, R.

For example, in S4:

w\DiamondP if and only if for some element v of G, it holds that w R v and v ⊨ P.

However, in S5, we can just say that

w\DiamondP if and only if for some element v of G, it holds that v ⊨ P.

We can drop the accessibility clause from the latter stipulation because it is trivially true of all S5 frames that w R v.

All of these logical systems can also be defined axiomatically, as is shown in the next section. For example, in S5, the axioms P → \Box\DiamondP, \BoxP → \Box\BoxP, and \BoxP → P (corresponding to symmetry, transitivity and reflexivity, respectively) hold, whereas at least one of these axioms does not hold in each of the other, weaker logics.

Axiomatic systems

The first formalizations of modal logic were axiomatic. Numerous variations with very different properties have been proposed since C. I. Lewis began working in the area in 1910. Hughes and Cresswell (1996), for example, describe 42 normal and 25 non-normal modal logics. Zeman (1973) describes some systems Hughes and Cresswell omit.

Modern treatments of modal logic begin by augmenting the propositional calculus with two unary operations, one denoting "necessity" and the other "possibility". The notation of Lewis, much employed since, denotes "necessarily p" by a prefixed "box" ( \Box p ) whose scope is established by parentheses. Likewise, a prefixed "diamond" (\Diamond p) denotes "possibly p". Regardless of notation, each of these operators is definable in terms of the other:

Hence \Box and \Diamond form a dual pair of operators.

In many modal logics, the necessity and possibility operators satisfy the following analogs of de Morgan's laws from Boolean algebra:

"It is not necessary that X" is logically equivalent to "It is possible that not X".
"It is not possible that X" is logically equivalent to "It is necessary that not X".

Precisely what axioms and rules must be added to the propositional calculus to create a usable system of modal logic is a matter of philosophical opinion, often driven by the theorems one wishes to prove; or, in computer science, it is a matter of what sort of computational or deductive system one wishes to model. Many modal logics, known collectively as normal modal logics, include the following rule and axiom:

The weakest normal modal logic, named K in honor of Saul Kripke, is simply the propositional calculus augmented by  \Box , the rule N, and the axiom K. K is weak in that it fails to determine whether a proposition can be necessary but only contingently necessary. That is, it is not a theorem of K that if  \Box p is true then  \Box \Box p is true, i.e., that necessary truths are "necessarily necessary". If such perplexities are deemed forced and artificial, this defect of K is not a great one. In any case, different answers to such questions yield different systems of modal logic.

Adding axioms to K gives rise to other well-known modal systems. One cannot prove in K that if "p is necessary" then p is true. The axiom T remedies this defect:

Other well-known elementary axioms are:

These axioms yield the systems:

K through S5 form a nested hierarchy of systems, making up the core of normal modal logic. But specific rules or sets of rules may be appropriate for specific systems. For example, in deontic logic,  \Box p \rightarrow \Diamond p (If it ought to be that p, then it is permitted that p) seems appropriate, but we should probably not include that  p \rightarrow \Box \Diamond p.

The commonly employed system S5 simply makes all modal truths necessary. For example, if p is possible, then it is "necessary" that p is possible. Also, if p is necessary, then it is necessary that p is necessary. Other systems of modal logic have been formulated, in part because S5 does not describe every kind of modality of interest.

Alethic logic

Modalities of necessity and possibility are called alethic modalities. They are also sometimes called special modalities, from the Latin species. Modal logic was first developed to deal with these concepts, and only afterward was extended to others. For this reason, or perhaps for their familiarity and simplicity, necessity and possibility are often casually treated as the subject matter of modal logic. Moreover it is easier to make sense of relativizing necessity, e.g. to legal, physical, nomological, epistemic, and so on, than it is to make sense of relativizing other notions.

In classical modal logic, a proposition is said to be

In classical modal logic, therefore, either the notion of possibility or necessity may be taken to be basic, where these other notions are defined in terms of it in the manner of De Morgan duality. Intuitionistic modal logic treats possibility and necessity as not perfectly symmetric.

For those with difficulty with the concept of something being possible but not true, the meaning of these terms may be made more comprehensible by thinking of multiple "possible worlds" (in the sense of Leibniz) or "alternate universes"; something "necessary" is true in all possible worlds, something "possible" is true in at least one possible world. These "possible world semantics" are formalized with Kripke semantics.

Physical possibility

Something is physically possible if it is permitted by the laws of physics. For example, current theory allows for there to be an atom with an atomic number of 150, though there may not in fact be any such atoms in existence. Similarly, while it is logically possible to accelerate beyond the speed of light, that is not, according to modern science, physically possible for material particles or information.

Metaphysical possibility

Philosophers ponder the properties that objects have independently of those dictated by scientific laws. For example, it might be metaphysically necessary, as some have thought, that all thinking beings have bodies and can experience the passage of time, or that God exists (or does not). Saul Kripke has argued that every person necessarily has the parents they do have: anyone with different parents would not be the same person.[9]

Metaphysical possibility is generally thought to be more restricting than bare logical possibility (i.e., fewer things are metaphysically possible than are logically possible). Its exact relation to physical possibility is a matter of some dispute. Philosophers also disagree over whether metaphysical truths are necessary merely "by definition", or whether they reflect some underlying deep facts about the world, or something else entirely.

Confusion with epistemic modalities

Alethic modalities and epistemic modalities (see below) are often expressed in English using the same words. "It is possible that bigfoot exists" can mean either "Bigfoot could exist, whether or not bigfoot does in fact exist" (alethic), or more likely, "For all I know, bigfoot exists" (epistemic).

Epistemic logic

Epistemic modalities (from the Greek episteme, knowledge), deal with the certainty of sentences. The  \Box operator is translated as "x knows that…", and the  \Diamond operator is translated as "For all x knows, it may be true that…" In ordinary speech both metaphysical and epistemic modalities are often expressed in similar words; the following contrasts may help:

A person, Jones, might reasonably say both: (1) "No, it is not possible that Bigfoot exists; I am quite certain of that"; and, (2) "Sure, Bigfoot possibly could exist". What Jones means by (1) is that given all the available information, there is no question remaining as to whether Bigfoot exists. This is an epistemic claim. By (2) he makes the metaphysical claim that it is possible for Bigfoot to exist, even though he does not (which is not equivalent to "it is possible that Bigfoot exists – for all I know", which contradicts (1)).

From the other direction, Jones might say, (3) "It is possible that Goldbach's conjecture is true; but also possible that it is false", and also (4) "if it is true, then it is necessarily true, and not possibly false". Here Jones means that it is epistemically possible that it is true or false, for all he knows (Goldbach's conjecture has not been proven either true or false), but if there is a proof (heretofore undiscovered), then it would show that it is not logically possible for Goldbach's conjecture to be false—there could be no set of numbers that violated it. Logical possibility is a form of alethic possibility; (4) makes a claim about whether it is possible (ie, logically speaking) that a mathematical truth to have been false, but (3) only makes a claim about whether it is possible, for all Jones knows, (ie, speaking of certitude) that the mathematical claim is specifically either true or false, and so again Jones does not contradict himself. It is worthwhile to observe that Jones is not necessarily correct: It is possible (epistemically) that Goldbach's conjecture is both true and unprovable.[10]

Epistemic possibilities also bear on the actual world in a way that metaphysical possibilities do not. Metaphysical possibilities bear on ways the world might have been, but epistemic possibilities bear on the way the world may be (for all we know). Suppose, for example, that I want to know whether or not to take an umbrella before I leave. If you tell me "it is possible that it is raining outside" – in the sense of epistemic possibility – then that would weigh on whether or not I take the umbrella. But if you just tell me that "it is possible for it to rain outside" – in the sense of metaphysical possibility – then I am no better off for this bit of modal enlightenment.

Some features of epistemic modal logic are in debate. For example, if x knows that p, does x know that it knows that p? That is to say, should \Box P \rightarrow \Box \Box P be an axiom in these systems? While the answer to this question is unclear, there is at least one axiom that must be included in epistemic modal logic, because it is minimally true of all modal logics (see the section on axiomatic systems):

But this is disconcerting, because with K, we can prove that we know all the logical consequences of our beliefs: If q is a logical consequence of p, then  \Box (p \rightarrow q). And if so, then we can deduce that (\Box p \rightarrow \Box q) using K. When we translate this into epistemic terms, this says that if q is a logical consequence of p, then we know that it is, and if we know p, we know q. That is to say, we know all the logical consequences of our beliefs. This must be true for all possible Kripkean modal interpretations of epistemic cases where \Box is translated as "knows that". But then, for example, if x knows that prime numbers are divisible only by themselves and the number one, then x knows that 8683317618811886495518194401279999999 is prime (since this number is only divisible by itself and the number one). That is to say, under the modal interpretation of knowledge, anyone who knows the definition of a prime number knows that this number is prime. This shows that epistemic modal logic is an idealized account of knowledge, and explains objective, rather than subjective knowledge (if anything).

Temporal logic

Temporal logic is an approach to the semantics of expressions with tense, that is, expressions with qualifications of when. Some expressions, such as '2 + 2 = 4', are true at all times, while tensed expressions such as 'John is happy' are only true sometimes.

In temporal logic, tense constructions are treated in terms of modalities, where a standard method for formalizing talk of time is to use two pairs of operators, one for the past and one for the future (P will just mean 'it is presently the case that P'). For example:

FP : It will sometime be the case that P
GP : It will always be the case that P
PP : It was sometime the case that P
HP : It has always been the case that P

There are then at least three modal logics that we can develop. For example, we can stipulate that,

 \Diamond P = P is the case at some time t
 \Box P = P is the case at every time t

Or we can trade these operators to deal only with the future (or past). For example,

 \Diamond_1 P = FP
 \Box_1 P = GP

or,

 \Diamond_2 P = P and/or FP
 \Box_2 P = P and GP

The operators F and G may seem initially foreign, but they create normal modal systems. Note that FP is the same as ¬G¬P. We can combine the above operators to form complex statements. For example, PP \Box PP says (effectively), Everything that is past and true is necessary.

It seems reasonable to say that possibly it will rain tomorrow, and possibly it won't; on the other hand, seeing as how we can't change the past, if it is true that it rained yesterday, it probably isn't true that it may not have rained yesterday. It seems the past is "fixed", or necessary, in a way the future is not. This is sometimes referred to as accidental necessity. But if the past is "fixed", and everything that is in the future will eventually be in the past, then it seems plausible to say that future events are necessary too

Similarly, the problem of future contingents considers the semantics of assertions about the future: is either of the propositions 'There will be a sea battle tomorrow', or 'There will not be a sea battle tomorrow' now true? Considering this thesis led Aristotle to reject the principle of bivalence for assertions concerning the future.

Additional binary operators are also relevant to temporal logics, q.v. Linear Temporal Logic.

Versions of temporal logic can be used in computer science to model computer operations and prove theorems about them. In one version, \Diamond P means "at a future time in the computation it is possible that the computer state will be such that P is true"; \Box P means "at all future times in the computation P will be true". In another version, \Diamond P means "at the immediate next state of the computation, P might be true"; \Box P means "at the immediate next state of the computation, P will be true". These differ in the choice of Accessibility relation. (P always means "P is true at the current computer state".) These two examples involve nondeterministic or not-fully-understood computations; there are many other modal logics specialized to different types of program analysis. Each one naturally leads to slightly different axioms.

Deontic logic

Likewise talk of morality, or of obligation and norms generally, seems to have a modal structure. The difference between "You must do this" and "You may do this" looks a lot like the difference between "This is necessary" and "This is possible". Such logics are called deontic, from the Greek for "duty".

Deontic logics commonly lack the axiom T semantically corresponding to the reflexivity of the accessibility relation in Kripke semantics: in symbols, \Box\phi\to\phi. Interpreting \Box as "it is obligatory that", T informally says that every obligation is true. For example, if it is obligatory not to kill others (i.e. killing is morally forbidden), then T implies that people actually do not kill others. The consequent is obviously false.

Instead, using Kripke semantics, we say that though our own world does not realize all obligations, the worlds accessible to it do (i.e., T holds at these worlds). These worlds are called idealized worlds. P is obligatory with respect to our own world if at all idealized worlds accessible to our world, P holds. Though this was one of the first interpretations of the formal semantics, it has recently come under criticism.[11]

One other principle that is often (at least traditionally) accepted as a deontic principle is D, \Box\phi\to\Diamond\phi, which corresponds to the seriality (or extendability or unboundedness) of the accessibility relation. It is an embodiment of the Kantian idea that "ought implies can". (Clearly the "can" can be interpreted in various senses, e.g. in a moral or alethic sense.)

Intuitive problems with deontic logic

When we try and formalize ethics with standard modal logic, we run into some problems. Suppose that we have a proposition K: you kill the victim, and another, Q: you kill the victim quickly. Now suppose we want to express the thought that "if you do kill the victim, you ought to kill him quickly". There are two likely candidates,

(1) (K \rightarrow \Box Q)
(2) \Box (K \rightarrow Q)

But (1) says that if you kill the victim, then it ought to be the case that you kill him quickly. This surely isn't right, because you ought not to have killed him at all. And (2) doesn't work either. If the right representation of "if you kill the victim then you ought to kill him quickly" is (2), then the right representation of (3) "if you kill the victim then you ought to kill him slowly" is \Box (K \rightarrow \lnot Q). Now suppose (as seems reasonable) that you should not kill the victim, or \Box \lnot K. But then we can deduce \Box (K \rightarrow \lnot Q), which would express sentence (3). So if you should not kill the victim, then if you kill him, you should kill him slowly. But that can't be right, and is not right when we use natural language. Telling someone they should not kill the victim certainly does not imply that they should kill the victim slowly if they do kill him.[12]

Doxastic logic

Doxastic logic concerns the logic of belief (of some set of agents). The term doxastic is derived from the ancient Greek doxa which means "belief". Typically, a doxastic logic uses \Box, often written "B", to mean "It is believed that", or when relativized to a particular agent s, "It is believed by s that".

Other modal logics

Significantly, modal logics can be developed to accommodate most of these idioms; it is the fact of their common logical structure (the use of "intensional" sentential operators) that make them all varieties of the same thing.

The ontology of possibility

In the most common interpretation of modal logic, one considers "logically possible worlds". If a statement is true in all possible worlds, then it is a necessary truth. If a statement happens to be true in our world, but is not true in all possible worlds, then it is a contingent truth. A statement that is true in some possible world (not necessarily our own) is called a possible truth.

Under this "possible worlds idiom," to maintain that Bigfoot's existence is possible but not actual, one says, "There is some possible world in which Bigfoot exists; but in the actual world, Bigfoot does not exist". However, it is unclear what this claim commits us to. Are we really alleging the existence of possible worlds, every bit as real as our actual world, just not actual? Saul Kripke believes that 'possible world' is something of a misnomer – that the term 'possible world' is just a useful way of visualizing the concept of possibility.[13] For him, the sentences "you could have rolled a 4 instead of a 6" and "there is a possible world where you rolled a 4, but you rolled a 6 in the actual world" are not significantly different statements.[14] David Lewis, on the other hand, made himself notorious by biting the bullet, asserting that all merely possible worlds are as real as our own, and that what distinguishes our world as actual is simply that it is indeed our world – this world.[15] That position is a major tenet of "modal realism". Some philosophers decline to endorse any version of modal realism, considering it ontologically extravagant, and prefer to seek various ways to paraphrase away these ontological commitments. Robert Adams holds that 'possible worlds' are better thought of as 'world-stories', or consistent sets of propositions. Thus, it is possible that you rolled a 4 if such a state of affairs can be described coherently.[16]

Computer scientists will generally pick a highly specific interpretation of the modal operators specialized to the particular sort of computation being analysed. In place of "all worlds", you may have "all possible next states of the computer", or "all possible future states of the computer".

See also

  • Accessibility relation
  • Counterpart theory
  • De dicto and de re
  • Description logic
  • Doxastic logic
  • Dynamic logic
  • Epistemic logic
  • Hybrid logic
  • Interior algebra
  • Interpretability logic
  • Kripke semantics
  • Possible worlds
  • Provability logic
  • Regular modal logic
  • Two dimensionalism
  • Modal verb

References

Free and online:

Notes

  1. History of logic: Arabic logic, Encyclopædia Britannica.
  2. 2.0 2.1 Taneli Kukkonen (2000), "Possible Worlds in the Tahâfut al-Falâsifa: Al-Ghazâlî on Creation and Contingency", Journal of the History of Philosophy 38 (4): 479-502 
  3. TONY STREET (2000), "TOWARD A HISTORY OF SYLLOGISTIC AFTER AVICENNA: NOTES ON RESCHER'S STUDIES ON ARABIC MODAL LOGIC", Journal of Islamic Studies (Oxford University Press) 11 (2): 209-228 
  4. Street, Tony (2005-01-01). "Logic". In Peter Adamson and Richard C. Taylor (ed.). The Cambridge Companion to Arabic Philosophy. Cambridge University Press. pp. 247 & 250. ISBN 9780521520690. 
  5. Richard F. Washell (1973), "Logic, Language, and Albert the Great", Journal of the History of Ideas 34 (3), p. 445-450 [445].
  6. Kneale p. 229
  7. Kneale: p. 266; Ockham: Summa Logicae i. 14; Avicenna: Avicennae Opera Venice 1508 f87rb
  8. Fitting and Mendelsohn. First-Order Modal Logic. Kluwer Academic Publishers, 1998. Section 1.6
  9. Saul Kripke. Naming and Necessity. Harvard University Press, 1980. pg 113
  10. See Goldbach's conjecture > Origins
  11. See, e.g., Sven Hansson, "Ideal Worlds—Wishful Thinking in Deontic Logic", Studia Logica, Vol. 82 (3), pp. 329–336, 2006.
  12. Ted Sider's Logic for Philosophy Currently page 228, but subject to change.
  13. Kripke, Saul. Naming and Necessity. (1980; Harvard UP), pp. 43–5.
  14. Kripke, Saul. Naming and Necessity. (1980; Harvard UP), pp. 15–6.
  15. David Lewis, On the Plurality of Worlds (1986; Blackwell)
  16. Adams, Robert M. Theories of Actuality. Noûs, Vol. 8, No. 3 (Sep., 1974), particularly pp. 225–31.

Further reading

External links